package com.wjx.reservation_service.service;

import com.wjx.reservation_service.model.User;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import java.util.List;

public interface IUserService {
    //登录处理
    public User selectUserByUsername(String username);
    //注册处理
    public int register(String username,String password,String authority);
    //根据id查询用户
    public User queryUserById(int id);
    //查询所有用户
    public List<User> queryAllUser();
    //根据用户名模糊查询
    public List<User> queryLikeUsername(String keyword);
    //根据id更新用户
    public int updateUserById(User user);
    //根据id删除用户
    public int deleteUserById(int id);
}
